package com.xh.bussiness.tiku.dao;

import com.xh.bussiness.tiku.model.QuestionType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 题型 Mapper 接口
 * </p>
 *
 * @author daiwei
 * @since 2019-02-23
 */
public interface QuestionTypeMapper extends BaseMapper<QuestionType> {

    /**
     * 根据科目查找对应的试题（为空表示不限制）
     * @param subjectId
     * @return
     */
    public List<Map<String,Object>> queryListBySubjectId(String subjectId);

    List<QuestionType> queryById();
}
